package com.zzy.面试;

public class TestStringIsOne {

	public static final String s1 = "ab";
	public static final String s2 = "cd";
	
	public static final String s3;
	public static final String s4;
	
	static {
		s3 = "ab";
		s4 = "cd";
	}
	
	public static void main(String[] args) {
		String s5 = s1 +  s2;
		String s6 = "abcd";
		System.out.println(s5 == s6);
		
		String s7 = s3 + s4;
		System.out.println(s7 == s6);
		System.out.println(s7 == s5);
		
		String s8 = new String("abcd");
		String s9 = s8.intern();
		System.out.println(s8 == s9);
		
		System.out.println(Math.ceil(-11.5));
		System.out.println(Math.floor(11.5));
		
		
	}
}
